import Ember from 'ember';

export default Ember.Route.extend({
    model() {
      var myGlobals = this.get('myGlobals'),
          url = "/stats/taskitems";

      myGlobals.set('pageTitles', {title: "控制台",  subTitle: "当前任务一览"});

      return Ember.RSVP.Promise.all([
        Ember.$.getJSON(url)
      ]
      ).then(function(values){
        return {taskitemStats: values[0]};
      });
    }
});
